package com.azusa.ktc_user;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import utils.IdWorker;
import utils.JwtUtil;

/**
 * @Description
 * @author Azusa
 * @date 2020-10-12 18:33:46
*/
@SpringBootApplication
@EnableEurekaClient
public class KtcUserApplication {

	public static void main(String[] args) {
		SpringApplication.run(KtcUserApplication.class, args);
	}

	@Bean
	public IdWorker idWorker(){
		return new IdWorker();
	}

	@Bean
	public BCryptPasswordEncoder getBCryptPasswordEncoder(){
		return new BCryptPasswordEncoder();
	}

	@Bean
	public JwtUtil getJwtUtil(){
		return new JwtUtil();
	}


}
